
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Examples - Vue Carousel</title>
        <meta charset="utf-8">
        <meta name="description" content="Vue Carousel - A flexible, responsive, touch-friendly carousel for Vue.js">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        <meta property="og:type" content="article">
        <meta property="og:title" content="Examples - Vue Carousel">
        <meta property="og:description" content="Vue Carousel - A flexible, responsive, touch-friendly carousel for Vue.js">
        <meta property="og:image" content="https:///images/logo.png">

        <meta name="twitter:card" content="summary">
        <meta name="twitter:title" content="Examples - Vue Carousel">
        <meta name="twitter:description" content="Vue Carousel - A flexible, responsive, touch-friendly carousel for Vue.js">
        <meta name="twitter:image" content="https:///images/logo.png">

        <link rel="icon" href="/vue-carousel/images/logo.png" type="image/x-icon">

        <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'>
        <link href='//fonts.googleapis.com/css?family=Dosis:500&text=Vue.js' rel='stylesheet' type='text/css'>

        <!-- main page styles -->
        <link rel="stylesheet" href="/vue-carousel/css/page.css">

        <!-- this needs to be loaded before guide's inline scripts -->
        <script src="/vue-carousel/js/vue.js"></script>
        <script src="/vue-carousel/js/vue-carousel.min.js"></script>
        <script>window.PAGE_TYPE = ""</script>
    </head>
    <body class="docs">        <div id="mobile-bar" >
            <a class="menu-button"></a>
            <a class="logo" href="/vue-carousel/"></a>
        </div>
        <div id="header">
  <a id="logo" href="/vue-carousel/">
    <img src="/vue-carousel/images/logo.png" alt="Vue Carousel">
    <span>Vue Carousel</span>
  </a>
  <ul id="nav">
    <li><a href="/vue-carousel/guide" class="nav-link">Guide</a></li>
<li><a href="/vue-carousel/api" class="nav-link">API</a></li>
<li><a href="/vue-carousel/examples" class="nav-link current">Examples</a></li>

  </ul>
</div>

        
            <div id="main" class="fix-sidebar">
                
                    
  <div class="sidebar">
    <ul class="main-menu">
      <li><a href="/vue-carousel/guide" class="nav-link">Guide</a></li>
<li><a href="/vue-carousel/api" class="nav-link">API</a></li>
<li><a href="/vue-carousel/examples" class="nav-link current">Examples</a></li>

    </ul>
  </div>

<div class="content  ">
    
    
      <h1>Examples</h1>
    
    <h2 id="Basic"><a href="#Basic" class="headerlink" title="Basic"></a>Basic</h2><p>No options configured, 10 slides added to the carousel.</p>
<script async src="//jsfiddle.net/toddlawton/2bxwyg8g/embed/result,js/"></script>

<h2 id="Responsive"><a href="#Responsive" class="headerlink" title="Responsive"></a>Responsive</h2><p>Configured breakpoints: 2 slides on mobile (&lt;= 480px), 3 slides on tablet (&lt;= 768).<br><strong>Note: in a JSFiddle iframe, the breakpoint is determined by the iframe’s width.</strong></p>
<script async src="//jsfiddle.net/quinnssense/bojn4dz4/embed/js,result/"></script>

<h2 id="Scroll-per-page"><a href="#Scroll-per-page" class="headerlink" title="Scroll per page"></a>Scroll per page</h2><p>Instead of scrolling on a per item basis, the carousel will scroll the configured <a href="/vue-carousel/api#perPage">perPage</a> with each movement.</p>
<script async src="//jsfiddle.net/toddlawton/6ckc1pqv/embed/result,js/"></script>

<h2 id="Scroll-per-page-custom"><a href="#Scroll-per-page-custom" class="headerlink" title="Scroll per page (custom)"></a>Scroll per page (custom)</h2><p>Instead of scrolling on a per item basis, the carousel will scroll the configured by <a href="/vue-carousel/api#perPageCustom">perPageCustom</a> with each movement.</p>
<script async src="//jsfiddle.net/quinnssense/gjr7wbph/1/embed/"></script>

<h2 id="Autoplay"><a href="#Autoplay" class="headerlink" title="Autoplay"></a>Autoplay</h2><p>The carousel will auto-advance slides unless the carousel is hovered upon.</p>
<script async src="//jsfiddle.net/toddlawton/n1argwgg/embed/result,js/"></script>

<h2 id="Autoplay-infinite-loop"><a href="#Autoplay-infinite-loop" class="headerlink" title="Autoplay infinite loop"></a>Autoplay infinite loop</h2><p>The carousel will auto-play and loop when reaching the end.</p>
<script async src="//jsfiddle.net/kpkrmx2k/3/embed/result,js/"></script>

<h2 id="Navigation"><a href="#Navigation" class="headerlink" title="Navigation"></a>Navigation</h2><p>Buttons added to advance the carousel in either direction.</p>
<script async src="//jsfiddle.net/toddlawton/46wegz8a/embed/result,js/"></script>

<h2 id="Customized"><a href="#Customized" class="headerlink" title="Customized"></a>Customized</h2><p>Customized pagination dot colors and sizes. Customized speed and easing.</p>
<script async src="//jsfiddle.net/toddlawton/ycp9bwhp/embed/result,js/"></script>

<style type="text/css">iframe { max-height: 230px; }</style>

    
    <div class="footer">
      Caught a mistake or want to contribute to the documentation?
      <a href="https://github.com/SSENSE/vue-carousel/blob/master/docs/source/examples/index.md" target="_blank">
        Edit this page on Github!
      </a>
    </div>
</div>

                
            </div>
            <script src="/vue-carousel/js/smooth-scroll.min.js"></script>
        

        <!-- main custom script for sidebars, version selects etc. -->
        <script src="/vue-carousel/js/common.js"></script>

        <!-- ga -->
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          ga('create', '', '');
          ga('send', 'pageview');
        </script>

        <!-- search -->
        <link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="/vue-carousel/css/search.css">
        <script src="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
        <script>
        [
          '#search-query-nav',
          '#search-query-sidebar'
        ].forEach(function (selector) {
          if (!document.querySelector(selector)) return
          // search index defaults to v2
          var match = window.location.pathname.match(/^\/(v\d+)/)
          var version = match ? match[1] : 'v2'
          docsearch({
            appId: 'BH4D9OD16A',
            apiKey: '85cc3221c9f23bfbaa4e3913dd7625ea',
            indexName: 'vuejs',
            inputSelector: selector,
            algoliaOptions: { facetFilters: ["version:" + version] }
          })
        })
        </script>

        <!-- fastclick -->
        <script src="//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
        <script>
        document.addEventListener('DOMContentLoaded', function() {
          FastClick.attach(document.body)
        }, false)
        </script>
    </body>
</html>
